# -*- coding: utf-8 -*-
"""
Created on Fri Sep 22 15:11:30 2023

@author: 楠川之木
"""

x1 , y1 = map ( int , input ("请输入第一个点的坐标，用空格隔开：" ) .split () )
x2 , y2 = map ( int , input ( "请输入第二个点的坐标，用空格隔开：" ) .split () )
distance = abs ( x1 - x2 ) + abs ( y1 - y2 ) 
print ("两点之间的曼哈顿距离为：",distance )